package cn.ac.iscas.bean.base;

import java.io.File;

import org.apache.struts2.ServletActionContext;

public class DeleteDocument  {
	public static boolean  deleteDocuments(String... fileName) {
		for(String file:fileName)
		{
			String realPath =  ServletActionContext.getServletContext().getRealPath("/documents");
		    file = realPath+"/"+file;
		    File deleteFile = new File(file);
		    deleteFile.delete();
		}
		return true; 
	}

}
